<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test-fuchsia-gui</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">test-fuchsia-gui</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>file:///Users/andrew/Projects/fuchsia/trunk/src/fuchsia.html</td>
	<td></td>
</tr>
<!--Test title-->
<tr>
	<td>assertTitle</td>
	<td>fuchsia</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@id='header']//span[@class='title']</td>
	<td>fuchsia</td>
</tr>
<!--Test 'about'-->
<tr>
	<td>click</td>
	<td>link=about</td>
	<td></td>
</tr>
<tr>
	<td>assertVisible</td>
	<td>//textarea[@id='textbox']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=close</td>
	<td></td>
</tr>
<!--Add two notes-->
<tr>
	<td>type</td>
	<td>newText</td>
	<td>abc</td>
</tr>
<tr>
	<td>click</td>
	<td>link=add note</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newText</td>
	<td>def</td>
</tr>
<tr>
	<td>click</td>
	<td>link=add note</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>n0t</td>
	<td>abc</td>
</tr>
<tr>
	<td>assertText</td>
	<td>n1t</td>
	<td>def</td>
</tr>
<!--Test "delete all"-->
<tr>
	<td>click</td>
	<td>link=delete all</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>glob:Are you sure*</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>n0t</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>n1t</td>
	<td></td>
</tr>
<!--Test note background (B)-->
<tr>
	<td>type</td>
	<td>newText</td>
	<td>ghi</td>
</tr>
<tr>
	<td>click</td>
	<td>link=add note</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>n2t</td>
	<td>ghi</td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>//div[@id='n2'][@class='note colour0']</td>
	<td></td>
</tr>
<!--Test note edit (E)-->
<tr>
	<td>click</td>
	<td>//div[@id='n2']//p[@class='note-commands']//a[2]</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>//div[@id='n2'][@class='note colour1']</td>
	<td></td>
</tr>
<!--Test note delete (X)-->
<tr>
	<td>click</td>
	<td>//div[@id='n2']//p[@class='note-commands']//a[3]</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>n2t</td>
	<td></td>
</tr>
<!--Test export JSON-->
<tr>
	<td>type</td>
	<td>newText</td>
	<td>jkl</td>
</tr>
<tr>
	<td>click</td>
	<td>link=add note</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>n3t</td>
	<td>jkl</td>
</tr>
<tr>
	<td>click</td>
	<td>link=export as JSON</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=close</td>
	<td></td>
</tr>
<!--Test export text-->
<tr>
	<td>click</td>
	<td>link=export as text</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=close</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
